<template>
  <el-table :data="formData" style="width: 100%">
    <el-table-column fixed label="编号" width="180" type="index">
    </el-table-column>
    <el-table-column prop="key" label="答案"> </el-table-column>
  </el-table>
</template>

<script>
import { getQuestionCount, getQuestionList } from '@/api/form'
export default {
  name: 'timepickerWrapper',
  props: {
    res: {
      required: true
    }
  },
  async created() {
    const { data } = await getQuestionList(this.res.field)
    data.data.map((item) => {
      this.formData.push({ 'key': item })
    })
  },
  data() {
    return {
      formData: []
    }
  }
}
</script>

<style>
</style>